package yuanxing;
//具体原型（vivo）
public class Vivo extends Phone implements Cloneable {
	public Vivo() {
		type="vivo";
	}
	// 定义克隆方法
	@Override
	public Phone phoneClone() {
		Phone phone=null;
		try {
			phone=(Phone)super.clone();
			phone.type=new String(type);
		} catch (CloneNotSupportedException e) {
			e.printStackTrace();
		}
		return  phone;
	}
	public void showType() {
		System.out.println(type);
	}
}
